package com.base.service.impl;

import com.base.mapper.voipmapper.ShareRedPacketMoneyMapper;
import com.base.po.voip.ShareRedPacketMoney;
import com.base.po.voip.ShareRedPacketMoneyExample;
import com.base.service.ShareRedPacketMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("shareRedPacketMoneyService")
public class ShareRedPacketMoneyServiceImpl implements ShareRedPacketMoneyService {
	
	@Autowired
	private ShareRedPacketMoneyMapper shareRedPacketMoneyMapper;


	@Override
	public int countByExample(ShareRedPacketMoneyExample example) {
		return shareRedPacketMoneyMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShareRedPacketMoneyExample example) {
		return shareRedPacketMoneyMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return shareRedPacketMoneyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ShareRedPacketMoney record) {
		return shareRedPacketMoneyMapper.insert(record);
	}

	@Override
	public int insertSelective(ShareRedPacketMoney record) {
		return shareRedPacketMoneyMapper.insertSelective(record);
	}

	@Override
	public List<ShareRedPacketMoney> selectByExample(ShareRedPacketMoneyExample example) {
		return shareRedPacketMoneyMapper.selectByExample(example);
	}

	@Override
	public List<ShareRedPacketMoney> selectByRedPacketId(String userid, String redpacketid) {
		return shareRedPacketMoneyMapper.selectByRedPacketId(userid, redpacketid);
	}

	@Override
	public ShareRedPacketMoney selectByPrimaryKey(Integer id) {
		return shareRedPacketMoneyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(ShareRedPacketMoney record, ShareRedPacketMoneyExample example) {
		return shareRedPacketMoneyMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ShareRedPacketMoney record, ShareRedPacketMoneyExample example) {
		return shareRedPacketMoneyMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShareRedPacketMoney record) {
		return shareRedPacketMoneyMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ShareRedPacketMoney record) {
		return shareRedPacketMoneyMapper.updateByPrimaryKey(record);
	}
}
